package cn.com.heaton.blelibrary.ble;

import cn.com.heaton.blelibrary.ble.model.BleDevice;
import cn.com.heaton.blelibrary.ble.model.ScanRecord;

/**
 * 蓝牙对象的封装
 */
public class BleRssiDevice extends BleDevice {


    private String sn;
    private ScanRecord scanRecord;
    private int rssi;
    private long rssiUpdateTime;


    public BleRssiDevice(String address, String name) {
        super(address, name);
    }
    public BleRssiDevice(String sn,String address, String name) {
        super(address, name);
        this.sn=sn;
    }



    public ScanRecord getScanRecord() {
        return scanRecord;
    }

    public void setScanRecord(ScanRecord scanRecord) {
        this.scanRecord = scanRecord;
    }

    public int getRssi() {
        return rssi;
    }

    public void setRssi(int rssi) {
        this.rssi = rssi;
    }

    public long getRssiUpdateTime() {
        return rssiUpdateTime;
    }

    public void setRssiUpdateTime(long rssiUpdateTime) {
        this.rssiUpdateTime = rssiUpdateTime;
    }


    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }


    @Override
    public String toString() {
        return "BleRssiDevice{" +
                "sn='" + sn + '\'' +
                ", scanRecord=" + scanRecord +
                ", rssi=" + rssi +
                ", rssiUpdateTime=" + rssiUpdateTime +
                '}';
    }
}
